<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="../css/login.css">
    <meta charset="UTF-8">
    <title>健康上报系统</title>
    <meta name="save" content="history">
</head>
<body>
        <div>
            <h1 align="center">疫情每日打卡,坚持就是胜利！</h1>
        </div>
        <div class="content">
            <div class="logCon">
                <p th:text="${userError}"></p>
                <p th:text="${passwordError}"></p>
                <form id="form1" modelattribute="person" action="/userPage/login" method="post">
                    <div class="line"><span>账号:</span>
                        <input class="bt_input" type="text" name="personId" th:value="${personId}" required="">
                    </div>
                    <div class="line"><span>密码:</span>
                        <input class="bt_input" type="password" name="password" th:value="${password}" required="">
                    </div>
                    <!--点击此元素会自动激活验证码-->
                    <!--id : 元素的id(必须)-->
                    <!--data-appid : AppID(必须)-->
                    <!--data-cbfn : 回调函数名(必须)-->
                    <!--data-biz-state : 业务自定义透传参数(可选)-->
                    <input id="ticket" name="ticket" type="hidden" value="">
                    <input id="randStr" name="randStr" type="hidden" value="">
                    <button class="logingBut"
                            id="TencentCaptcha"
                            data-appid="1306253469"
                            data-cbfn="callback"
                            type="button"
                            onclick='submitFormWithCaptcha()'
                    >验证并登录</button>
                </form>
                <form action="/userPage/register" method="post">
                <button type="submit" class="logingBut">没账号？去注册</button>
            </form>
                <form action="/admin/ToPage/AdminLogin" method="post">
                    <button type="submit" class="logingBut">管理员登录</button>
                </form>
            </div>
        </div>
        <script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
        <script language="JavaScript" src="../js/captcha.js"></script>
</body>
</html>